<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
    // 打印五行五列星星
        var str = ''
        for(var i = 1;i <= 5; i++) { //外层负责五列行
            
            for(var j = 1; j <= 5; j++) {
                str = str + '★'//内层负责每行打印五颗星星
            }
            str = str + '\n'//每行结尾换行newline \n
        }
        console.log(str);
    </script>
</head>
<body>
    
</body>
</html>